package team.kirohuji.repository.jpa.attendance;

import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.Query;
import org.springframework.stereotype.Repository;

import team.kirohuji.domain.attendance.Attendance;

@Repository
public interface AttendanceRepository extends JpaRepository<Attendance, Integer> {
	
	@Query(value="select * from attendance where user_id=?1", nativeQuery = true)
	Attendance findAttendanceByUserId(Integer userId);
	
}